using IcsSEMCtrl.Event.Device;
using Lifter.Global.Device;
using System;
namespace Lifter.Event.Lifter
{
	[Serializable]
	public class MessageSendEvent : DeviceEvent
	{
		public static readonly string CLASS = "MessageSendEvent";
		public static readonly string SPECIFIC_SUBJECT = "MessageSend";
		public new static readonly string SUBJECT = DeviceEvent.SUBJECT + "." + MessageSendEvent.SPECIFIC_SUBJECT;
		private MessageType msgType;
		private string msgDescription;
		public MessageType MsgType
		{
			get
			{
				return this.msgType;
			}
			set
			{
				this.msgType = value;
			}
		}
		public string MsgDescription
		{
			get
			{
				return this.msgDescription;
			}
			set
			{
				this.msgDescription = value;
			}
		}
		public MessageSendEvent(string deviceId, string deviceType, MessageType msgType, string msgDescription) : base(deviceId, deviceType)
		{
			this.msgType = msgType;
			this.msgDescription = msgDescription;
		}
		protected new string CreateSubject(string id)
		{
			return MessageSendEvent.FormSubject(id);
		}
		public new static string FormSubject(string id)
		{
			return MessageSendEvent.SUBJECT + "." + id;
		}
	}
}
